package com.cml.getway.core.netty.processor.filter;

public interface ProcessorFilter<T> {
    boolean check(T t) throws Throwable;

    void entry(T t, Object... args) throws Throwable;

    void fireNext(T t, Object... args) throws Throwable;

    void transformEntry(T t, Object... args) throws Throwable;

    default void init() throws Exception {

    }

    default void destroy() throws Exception {

    }

    default void refresh() throws Exception {

    }
}
